<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<!--
	 -->
  <title>Index for <?=$dirname?></title>
  <style type="text/css">
  	body { 
  		Font-family: arial
  	}
  </style>
  <script type="text/javascript">
  	//Get the newly-selected principal; go through the acl, and 
  	//update the SPS form to reflect his privs. 
  	function principalChanged()
  	{
  	}
  </script>
</head>
<body>
  <h1>Calendar <?=$resourcename?></h1>
  <div>
  	<form name="changeOwner">
  		Owner: <?=$selOwner?>
  		<input type="submit" name="chgOwner" value="Change"/>
  	</form>
  </div> 
  <table>
  	<tr><th>Principal</th><th>P</th><th>G</th><th>Privileges</th></tr>
  	<?=$aceData?>
	</table>
	<form method="post" action="">
  	<h3>Change ACEs</h3>
    <input type="hidden" name="action" value="acl" />
    <select id="selp">
    	<?=$selp?>
    </select>
  </form>
   <?=$spsData?> 
  <table>
    <tr><th>Name</th><th>Type</th><th>Size</th><th>Last modified</th></tr>
    <?=$fileHtml?>
	</table>
	<table>
		<tr><td colspan="4"><hr /></td></tr>
		<tr><td><form method="post" action="">
            <h3>Create new folder</h3>
            <input type="hidden" name="action" value="mkcol" />
            Name: <input type="text" name="name" /><br />
            <input type="submit" value="create" />
            </form>

            <form method="post" action="" enctype="multipart/form-data">
            <h3>Upload file</h3>
            <input type="hidden" name="action" value="put" />
            Name (optional): <input type="text" name="name" /><br />
            File: <input type="file" name="file" /><br />
            <input type="submit" value="upload" />
            </form>

    </td></tr>
  </table>
  <address>Generated by SlashDAV 0.1</address>
</body>
</html>